package cn.hinglo.gameclaw.client.action;

import cn.hinglo.gameclaw.admin.service.MoneyService;
import cn.hinglo.gameclaw.data.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @createTime: 2018/1/11
 * @author: HingLo
 * @description: 客户端充值界面请求
 */
@RestController
@RequestMapping("client/moc/")
public class MoneyClientAction {

    private final MoneyService moneyService;

    @Autowired
    public MoneyClientAction(MoneyService moneyService) {
        this.moneyService = moneyService;
    }

    /**
     * 客服端请求充值界面的数据
     *
     * @return 操作结果
     */
    @GetMapping("list")
    public Result listMoney() {
        return moneyService.lisClientMoneyService();
    }


}
